# coding:utf-8
# 作者：理想国真恵玩
import numpy as np

# 生成10名同学，5门功课的成绩
score = np.random.randint(40, 100, (10, 5))
print(score)

# 取出最后四名同学的成绩，用于逻辑判断
test_score = score[0:, 1:]
print(test_score)

# 逻辑判断，查询大于60分的成绩
print(test_score > 60)

# 赋值，将及格的成绩赋值为1
test_score[test_score > 60] = 1
print(test_score)
